package com.supercwn.player.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.supercwn.player.SuperVideoDetailsActivity;
import com.supercwn.player.bean.VideoBean;

/**
 * Created by jhon on 2017/3/8.
 */

public class JumpToPlay {
    public static void videoPlay(Activity activity, VideoBean bean) {
        Intent intent = new Intent(activity, SuperVideoDetailsActivity.class);
        Bundle bundle = new Bundle();
        bundle.putSerializable(Constans.videoPlayerFlag, bean);
        intent.putExtras(bundle);
        activity.startActivity(intent);
    }
}
